//
//  WonderfulStroyCollectionViewCell.m
//  Travel
//
//  Created by 王嘉倩 on 15/9/18.
//  Copyright (c) 2015年 TeamThree. All rights reserved.
//

#import "WonderfulStroyCollectionViewCell.h"

@implementation WonderfulStroyCollectionViewCell

-(void)dealloc {
    [_showImgView release];
    [_userImgView release];
    [_userLabel release];
    [_titleLabel release];
    [_backImgView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor colorWithRed:0.969 green:0.949 blue:0.902 alpha:1.000];
        
        _backImgView = [[UIImageView alloc] initWithFrame:(CGRectMake(0, 0, (kWidth - 30) / 2, kHeight / (667.0 / 220)))];
        _backImgView.backgroundColor = [UIColor whiteColor];
        _backImgView.layer.masksToBounds = YES;
        _backImgView.layer.cornerRadius = 5;
        [self addSubview:_backImgView];
        
        _showImgView = [[UIImageView alloc] initWithFrame:(CGRectMake(0, 0, frame.size.width, 130))];
        _showImgView.backgroundColor = [UIColor orangeColor];
        [_backImgView addSubview:_showImgView];
        
        _titleLabel = [[UILabel alloc] initWithFrame:(CGRectMake(8, _showImgView.frame.origin.y + 130 + 10, _showImgView.frame.size.width - 16, 40))];
        _titleLabel.text = @"逛完大昭寺，我们赶往布达拉宫广场，中途打听到一个逛完大昭寺，我们赶往布达拉宫广场，中途打听到一个";
        _titleLabel.numberOfLines = 0;
        _titleLabel.font = [UIFont systemFontOfSize:13.0];
        [_backImgView addSubview:_titleLabel];
        
//        _userImgView = [[UIImageView alloc] initWithFrame:(CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>))];
        
        
        
        
    }
    return self;
}
@end
